﻿<%--
  Created by IntelliJ IDEA.
  User: 11076
  Date: 2018/12/6
  Time: 20:00
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%--左侧上方小按钮--%>
<div class="sidebar-shortcuts" id="sidebar-shortcuts">
    <div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
        <button class="btn btn-info" onclick="changeMenus('business');" title="业务菜单">
            <i class="ace-icon fa fa-pencil"></i>
        </button>
        <button class="btn btn-success" onclick="changeMenus('system');" title="系统菜单">
            <i class="ace-icon fa fa-cog"></i>
        </button>
        <button class="btn btn-warning" onclick="changeMenus('ok');" title="菜单三">
            <i class="ace-icon fa fa-user"></i>
        </button>
        <button class="btn btn-danger" onclick="changeMenus('ok');" title="菜单四">
            <i class="ace-icon fa fa-signal"></i>
        </button>
    </div>

    <div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
        <span class="btn btn-info"></span>
        <span class="btn btn-success"></span>
        <span class="btn btn-warning"></span>
        <span class="btn btn-danger"></span>
    </div>
</div><!-- /.sidebar-shortcuts -->


<%--左侧菜单栏--%>
<ul class="nav nav-list">
    <li class="">
        <a href="menu/to_main/business">
            <i class="menu-icon fa fa-tachometer"></i>
            <span class="menu-text"> 首页 </span>
        </a>

        <b class="arrow"></b>
    </li>

    <c:forEach items="${pageData.data.menus}" var="menu1">
        <c:if test="${menu1.menuShow}">
            <li class="" id="lm${menu1.menuId }">
                <a style="cursor:pointer;"
                   <c:if test="${not empty menu1.menuUrl && '#' != menu1.menuUrl}">target="mainFrame"
                   onclick="addTab('z${menu1.menuId }','lm000','${menu1.menuName }','${menu1.menuUrl }')"</c:if>
                        <c:if test="${'[]' != menu1.menuInfos}"> class="dropdown-toggle"</c:if>>
                    <i class="${menu1.menuIcon == null ? 'menu-icon fa fa-leaf black' : menu1.menuIcon}"></i>
                    <span class="menu-text">
                            ${menu1.menuName }
                    </span>
                    <c:if test="${'[]' != menu1.menuInfos}"><b class="arrow fa fa-angle-down"></b></c:if>
                </a>
                <b class="arrow"></b>
                <c:if test="${'[]' != menu1.menuInfos}">
                    <ul class="submenu">
                        <c:forEach items="${menu1.menuInfos}" var="menu2">
                            <c:if test="${menu2.menuShow}">
                                <li class="" id="z${menu2.menuId }">
                                    <a style="cursor:pointer;"
                                       <c:if test="${not empty menu2.menuUrl && '#' != menu2.menuUrl}">target="mainFrame"
                                       onclick="addTab('z${menu2.menuId }','lm${menu2.menuParentId }','${menu2.menuName }','${menu2.menuUrl }')"</c:if>
                                            <c:if test="${'[]' != menu2.menuInfos}"> class="dropdown-toggle"</c:if>>
                                        <i class="${menu2.menuIcon == null ? 'menu-icon fa fa-leaf black' : menu2.menuIcon}"></i>
                                            ${menu2.menuName }
                                        <c:if test="${'[]' != menu2.menuInfos}"><b
                                                class="arrow fa fa-angle-down"></b></c:if>
                                    </a>
                                    <b class="arrow"></b>
                                </li>
                            </c:if>
                        </c:forEach>
                    </ul>
                </c:if>
            </li>
        </c:if>
    </c:forEach>
</ul><!-- /.nav-list -->
